using Net35.Xrm.Sdk;
using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class AddSolutionComponentRequest : OrganizationRequest
	{
		public Guid ComponentId
		{
			get
			{
				if (base.Parameters.Contains("ComponentId"))
				{
					return (Guid)base.Parameters["ComponentId"];
				}
				return default(Guid);
			}
			set
			{
				base.Parameters["ComponentId"] = value;
			}
		}
		public int ComponentType
		{
			get
			{
				if (base.Parameters.Contains("ComponentType"))
				{
					return (int)base.Parameters["ComponentType"];
				}
				return 0;
			}
			set
			{
				base.Parameters["ComponentType"] = value;
			}
		}
		public string SolutionUniqueName
		{
			get
			{
				if (base.Parameters.Contains("SolutionUniqueName"))
				{
					return (string)base.Parameters["SolutionUniqueName"];
				}
				return null;
			}
			set
			{
				base.Parameters["SolutionUniqueName"] = value;
			}
		}
		public bool AddRequiredComponents
		{
			get
			{
				return base.Parameters.Contains("AddRequiredComponents") && (bool)base.Parameters["AddRequiredComponents"];
			}
			set
			{
				base.Parameters["AddRequiredComponents"] = value;
			}
		}
		public AddSolutionComponentRequest()
		{
			base.RequestName = "AddSolutionComponent";
			this.ComponentId = default(Guid);
			this.ComponentType = 0;
			this.SolutionUniqueName = null;
			this.AddRequiredComponents = false;
		}
	}
}
